package com.muatocroi.tornado;

import android.os.Bundle;
import android.view.Menu;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.view.WindowManager;

public class ActivityMCAbstractClass extends Activity{
	protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //Thread.setDefaultUncaughtExceptionHandler(new UnCaughtException(ActivityMCAbstractClass.this));
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		Intent mIntent;
		switch (item.getItemId()) {
			case R.id.action_About:
				mIntent = new Intent(this, AboutActivity.class);
				startActivity(mIntent);
				return true;
			case R.id.action_Help:
				mIntent = new Intent(this, HelpActivity.class);
				startActivity(mIntent);
				return true;
			case R.id.action_Settings:
				mIntent = new Intent(this, SettingActivity.class);
				startActivity(mIntent);
				return true;
			default:
				return super.onOptionsItemSelected(item);
			}
	}
	
}
